home *** CD-ROM | disk | FTP | other *** search
- Path: peer-news.britain.eu.net!demon!paget.demon.co.uk
- From: jon@paget.demon.co.uk (Jon March)
- Newsgroups: comp.lang.c
- Subject: Re: Macros in C (Disadvantages?)
- Date: Tue, 09 Jan 1996 07:49:33 GMT
- Message-ID: <821173834.5944@paget.demon.co.uk>
- References: <4cjluh$gva@kernighan.cs.umass.edu>
- Reply-To: jon@paget.demon.co.uk
- NNTP-Posting-Host: paget.demon.co.uk
- X-NNTP-Posting-Host: paget.demon.co.uk
- X-Newsreader: Forte Free Agent v0.55
-
- ramanath@freya.cs.umass.edu (Kumaresan Ramanathan) wrote:
-
- > I have been thinking about writing a general purpose code generator as
- >freeware to provide a powerful mechanism for creating user defined
- >extensions to C.
- [snip]
- >So my query is specifically:
- > What can code generators (written from scratch) do that macros cannot.
- > Have I missed any disadvantages of macros (for the purpose of extending
- >the C language) ?
- [snip]
-
- What do you want a code generator to do?
- I guess that you want minor insertions eg:
- "start
- for ( ; ; )
- {
- }
- end"
-
- Or is it something more complex?
-
- -- Jon March
- -- jon@paget.demon.co.uk
- -- "Watch the rocks, Mav!" "What f
-
-